<?php
use Qiniu\Auth;
use Qiniu\Storage\UploadManager;
function auth($accessKey, $secretKey)
{
    $auth= new Auth($accessKey, $secretKey);
    return  $auth;
}
function qndel($accessKey, $secretKey)
{
    $qndel = new Auth($accessKey, $secretKey);
    return  $qndel;
}

function uploadMgr()
{
    $uploadMgr = new UploadManager();
    return  $uploadMgr;
}
function classLoader($class)
{
    $path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
    $file = __DIR__ . '/src/' . $path . '.php';

    if (file_exists($file)) {
        require_once $file;
    }
}
spl_autoload_register('classLoader');

require_once  __DIR__ . '/src/Qiniu/functions.php';